import React from 'react'
import { Swiper, Image } from 'antd-mobile'

export default function banner({ bannerlist }: any) {
    return (
        <div>
            <Swiper autoplay loop>
                {bannerlist && bannerlist.map((item: any) => {
                    return <Swiper.Item key={item.id}>
                        <div>
                            <Image src={"/api2" + item.advImg} />
                        </div>
                    </Swiper.Item>
                })}
            </Swiper>
        </div>
    )
}
